//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.framework.web.codetable;

import com.hyjx.framework.common.CommonUtil;
import com.hyjx.framework.orm.dao.IBaseDao;
import com.hyjx.framework.orm.dao.Pager;
import java.sql.SQLException;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class CodeTableManagerServiceImpl implements CodeTableManagerService { //TODO codetableManager 数据层实现
//    @Resource
//    private IBaseDao dao;

    public CodeTableManagerServiceImpl() {
    }

    public String queryList(CodeTableManagerModel model) {
//        Pager pager = this.dao.getPager("codetablemanager.queryList", "codetablemanager.queryCount", model);
//        return CommonUtil.getPageJsonStr(pager);
        return null ;
    }

    public boolean add(CodeTableManagerModel model) {
//        return this.dao.addObject("codetablemanager.insert", model);
        return true;
    }

    public CodeTableManagerModel getInfoById(String s) {
        CodeTableManagerModel model = null;
//        model = (CodeTableManagerModel)this.dao.queryObject("codetablemanager.getInfoById", s);
        return model;
    }

    public int edit(CodeTableManagerModel model) {
//        return this.dao.updateObject("codetablemanager.update", model);
        return 0 ;
    }


    public int delete(String ids) {
        String[] id_array = ids.split(",");
        int num = 0;
        String[] var7 = id_array;
        int var6 = id_array.length;

        for(int var5 = 0; var5 < var6; ++var5) {
            String id = var7[var5];
//            this.dao.deleteObject("codetablemanager.delete", id);
            ++num;
        }

        return num;
    }

    public int checkcodetable(String codetable) throws SQLException {
//        return (Integer)this.dao.queryObject("codetablemanager.checkcodetable", codetable);
        return  0;
    }
}
